package com.xuecheng.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.system.model.dto.DictionaryDTO;
import com.xuecheng.system.entity.Dictionary;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public interface DictionaryService extends IService<Dictionary> {


    /**
     * 根据code查询数据字典
     * @param code 字典代码
     * @return
     */
    DictionaryDTO getDictionary(String code);


    /**
     * 查询全部数据字典
     * @return
     */
    List<DictionaryDTO> queryAll();
}
